// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.brest.managesambafilesharing;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

public class SetPreference
{

    public SetPreference(Context context1)
    {
        context = context1;
        preferences = PreferenceManager.getDefaultSharedPreferences(context);
    }

    public boolean BoolPref(String s, boolean flag)
    {
        android.content.SharedPreferences.Editor editor = preferences.edit();
        editor.putBoolean(s, flag);
        editor.commit();
        return true;
    }

    public boolean IntPref(String s, int i)
    {
        android.content.SharedPreferences.Editor editor = preferences.edit();
        editor.putInt(s, i);
        editor.commit();
        return true;
    }

    public boolean StrPref(String s, String s1)
    {
        android.content.SharedPreferences.Editor editor = preferences.edit();
        editor.putString(s, s1);
        editor.commit();
        return true;
    }

    Context context;
    SharedPreferences preferences;
}
